package com.apop.common.enums;

/**
 * 错误码
 */
public enum ErrorCode {
    //自定义的状态码
    EXCEPTION_SYS_UNKNOWN( "E20001","系统异常"),
    EXCEPTION_INCORRECT_USERNAME_OR_PASSWORD( "E20002","用户名或密码错误");

    //错误码
    public String code;
    //提示信息
    public String message;

    //构造函数
    ErrorCode(String code,String message){
        this.code = code;
        this.message = message;
    }

    //获取状态码
    public String getCode(){
        return code;
    }

    //获取提示信息
    public String getMessage(){
        return message;
    }

}
